import Vue from 'vue'
import Router from 'vue-router'
import { resolve } from 'url'

Vue.use(Router)

export default new Router({
  mode:'history',
  routes: [
    {
      path: '/',
      name: 'index',
      component: resolve => require(['@/components/index/Index'],resolve)
    },
    {
      path: '/name',
      name: 'name',
      component: resolve => require(['@/components/name/Name'],resolve)
    },
    {
      path: '/layout',
      name: 'layout',
      component: resolve => require(['@/components/layout/Layout'],resolve)
    },
    {
      path: '/fee',
      name: 'fee',
      component: resolve => require(['@/components/fee/Fee'],resolve)
    },
    {
      path: '/login',
      name: 'login',
      component: resolve => require(['@/components/login/Login'],resolve)
    },
    {
      path: '/about',
      name: 'about',
      component: resolve => require(['@/components/about/About'],resolve)
    },
    {
      path: '/activity',
      name: 'activity',
      component: resolve => require(['@/components/activity/Activity'],resolve)
    },
    {
      path: '/bename',
      name: 'bename',
      component: resolve => require(['@/components/bename/Bename'],resolve)
    },
    {
      path: '/rename',
      name: 'rename',
      component: resolve => require(['@/components/rename/Rename'],resolve)
    },
    {
      path: '/wg',
      name: 'wg',
      component: resolve => require(['@/components/wg/Wg'],resolve)
    },
    {
      path: '/sl',
      name: 'sl',
      component: resolve => require(['@/components/sl/Sl'],resolve)
    },
    {
      path: '/kx',
      name: 'kx',
      component: resolve => require(['@/components/kx/Kx'],resolve)
    }
  ]
})
